package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import java.io.Serializable;
import java.util.Date;

public class CashPosId implements Serializable {
    private static final long serialVersionUID = 1L;
    private String ccy;
    private Date date;
    private String rptdt;
    private Double amt;

    public CashPosId(){
        super();
    }

    public CashPosId(String ccy,Date date,String rptdt,Double amt){
        super();
        this.rptdt=rptdt;
        this.date=date;
        this.ccy=ccy;
        this.amt=amt;
    }

    public void setCcy(String ccy) {
        this.ccy = ccy;
    }

    public String getCcy() {
        return ccy;
    }

    public void setRptdt(String rptdt) {
        this.rptdt = rptdt;
    }

    public String getRptdt() {
        return rptdt;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setAmt(Double amt) {
        this.amt = amt;
    }

    public Double getAmt() {
        return amt;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((ccy == null) ? 0 : ccy.hashCode());
        result = prime * result + ((date == null) ? 0 : date.hashCode());
        result = prime * result + ((rptdt == null) ? 0 : rptdt.hashCode());
        result = prime * result + ((amt == null) ? 0 : amt.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        CashPosId other = (CashPosId) obj;
        if (ccy == null) {
            if (other.ccy != null)
                return false;
        } else if (!ccy.equals(other.ccy))
            return false;
        if (date == null) {
            if (other.date != null)
                return false;
        } else if (!date.equals(other.date))
            return false;
        if (rptdt == null) {
            if (other.rptdt != null)
                return false;
        } else if (!rptdt.equals(other.rptdt))
            return false;
        if (amt == null) {
            if (other.amt != null)
                return false;
        } else if (!amt.equals(other.amt))
            return false;
        return true;
    }
}
